package net.wexoo.onlinedivelog.reusable.behaviour;

import org.apache.wicket.Component;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

public class TemporaryAttributeAppender extends AttributeAppender {
   private static final long serialVersionUID = 1L;

   public TemporaryAttributeAppender(String attribute, String values) {
      this(attribute, Model.of(values));
   }

   public TemporaryAttributeAppender(String attribute, IModel<?> replaceModel) {
      super(attribute, replaceModel);
   }

   @Override
   public boolean isTemporary(Component component) {
      return true;
   }
}